import { createRouter, createWebHashHistory } from 'vue-router'
import Home from './components/Home.vue'
import DailySongList from './components/DailySongList.vue'
import GedanSongs from './components/GedanSongs.vue'

const routes = [
  {
    path: '/',
    component: Home
  },{
    path: '/dailySongsList', 
    name: '每日推荐',
    component: DailySongList
  },{
    path: '/hotTopic', 
    name: '热门话题',
    component: ()=>import('./components/HotTopic.vue')
  },{
    path: '/playSong',
    name: '播放歌曲',
    component: ()=>import('./components/PlayMusic.vue')
  },{
    path: '/gedanSongs/:gedanId', 
    name: '歌单详情',
    component: GedanSongs
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router

